package utils

import (
	"log"
	"os"
	"time"
)

func GenerateTime() {
	startTime := time.Date(2024, time.October, 20, 0, 0, 0, 0, time.UTC)
	fileName := "text.txt"
	dstFile, err := os.Create(fileName)
	if err != nil {
		log.Fatal("Output failed: ", err.Error())
		return
	}
	defer dstFile.Close()

	for i := 0; i < 10; i++ {
		dstFile.WriteString(startTime.Format("2006-01-02 15:04:00"))
		dstFile.WriteString("\n")
		startTime = startTime.Add(24 * time.Hour)
	}
}
